package com.example.springbootsecurity.service.impl;

import com.example.springbootsecurity.entity.ShiroMenu;
import com.example.springbootsecurity.entity.ShiroRole;
import com.example.springbootsecurity.mapper.ShiroMenuMapper;
import com.example.springbootsecurity.mapper.ShiroRoleMapper;
import com.example.springbootsecurity.service.ShiroMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author vicente
 * @since 2022-01-11
 */
@Service
public class ShiroMenuServiceImpl extends ServiceImpl<ShiroMenuMapper, ShiroMenu> implements ShiroMenuService {

    @Autowired
    private ShiroMenuMapper menuMapper;

    @Override
    public List<ShiroMenu> getMenuByUser(String userName) {
        List<ShiroMenu> menuList = menuMapper.findMenuByUserName(userName);
        return menuList;
    }

}
